#include "Food.h"
#include "item.h"
#include "Area.h"
#include <iostream>

CFood::CFood(void)
{
	Food = MAX_FOOD;
}


CFood::~CFood(void)
{
	
}

void CFood::act(int id){
	
	
	std::cout << "Food acting" << std::endl;

	if (Food == 0){
		
		GetPosition()->DeleteItem(this);
		delete this;	
	}

}

int CFood::GetFood(){
	Food--;

	return 1;





}
